Ext.define('DragonApp.store.JsonPTag', {
    extend: 'Ext.data.Store',
    model: 'DragonApp.model.File',

    alias: 'store.jsonPTagStore',

    proxy: {
        type: 'jsonp',
        url:  DragonApp.ux.config.Config.getUrl('/index/File_Manager/tagList/'),
        callbackKey: 'callback',

        reader: {
             type: 'json',
             rootProperty: 'rows',
             totalProperty: 'total'
        }
    },
    autoLoad: true,
    listeners: {
      exception: function(proxy, response, operation){
        DragonApp.util.Msg.showErrorMsg(response);
      }
    }
});